package org.achievement.system.common.annotations;

import org.achievement.system.common.enums.AuthEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 权限注解
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface InterfaceAuth {

    /**
     * 接口权限类型
     *
     * @return
     */
    public AuthEnum[] value();
}
